#!/usr/bin/env python3

# gstage4 - gentoo stage4 building
#
# Copyright (c) 2020-2021 Fpemud <fpemud@sina.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.


__package__ = 'gstage4'

__version__ = '0.0.1'

__author__ = 'Fpemud <fpemud@sina.com>'


from . import cloud_data
from . import custom_actions
from . import repositories
from . import scripts
from . import seed_stages
from . import target_features

from ._settings import Settings
from ._settings import TargetSettings

from ._prototype import SeedStage
from ._prototype import ManualSyncRepository
from ._prototype import EmergeSyncRepository
from ._prototype import ScriptInChroot
from ._prototype import FunctionInChroot

from ._workdir import WorkDir

from ._runner import Runner

from ._builder import Builder
from ._builder import CustomAction

from ._errors import HostInfoError
from ._errors import UpstreamError
from ._errors import SettingsError
from ._errors import SeedStageError
from ._errors import WorkDirError
from ._errors import BuildError
from ._errors import CustomActionError

REPO_POSTSYNC_PATCH_SCRIPT = Builder.REPO_POSTSYNC_PATCH_SCRIPT
REPO_POSTSYNC_PATCH_SOURCE_DIR = Builder.REPO_POSTSYNC_PATCH_SOURCE_DIR


__all__ = [
    "cloud_data",
    "custom_actions",
    "repositories",
    "scripts",
    "seed_stages",
    "target_features",
    "Settings",
    "TargetSettings",
    "SeedStage",
    "ManualSyncRepository",
    "EmergeSyncRepository",
    "ScriptInChroot",
    "FunctionInChroot",
    "WorkDir",
    "Runner",
    "Builder",
    "CustomAction",
    "HostInfoError",
    "UpstreamError",
    "SettingsError",
    "SeedStageError",
    "WorkDirError",
    "BuildError",
    "CustomActionError",
    "REPO_POSTSYNC_PATCH_SCRIPT",
    "REPO_POSTSYNC_PATCH_SOURCE_DIR",
]
